package sk.project.accounting.gui;

import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 * 
 */
public class App {

	private static Logger log = Logger.getLogger(App.class);
	
	public static void main(String[] args) {
		new App();		
	}
	
	public App() {
		log.info("Initialize application");
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		
		TestClass tc = (TestClass) context.getBean("testClassBean");
		MainWindow mv = (MainWindow) context.getBean("mainWindow");
		mv.startApp();
		tc.runService();
	}
	
}
